import { defineConfig } from 'tsup'

export default defineConfig({
  entry: ['main/index.ts'],
  outDir: 'dist',
  clean: true,
  sourcemap: true,
  splitting: false,
  dts: true,
  format: [
    'esm',
    'cjs'
  ],
  outExtension({ format }) {
    return {
      js: format === 'cjs'? '.cjs' : '.mjs'
    }
  }
})